package com.zymail.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dorado
 * @since 2021-04-12
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName(resultMap = "BaseResultMap")
public class ZyOrder implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品类别id
     */
    private Integer deId;

    /**
     * 地址id
     */
    private Integer floorId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 商品数量
     */
    private Integer count;

    /**
     * 订单金额
     */
    private Double price;

    /**
     * 订单备注
     */
    private String comment;

    /**
     * 订单快递单号
     */
    private String trans;

    /**
     * 订单状态
     */
    private Integer flag;

    /**
     * 下单时间
     */
    private LocalDateTime time;

    //---------------------------------------------------------//

    /**
     * order的一对一地址
     */
    private ZyFloor floor;

    /**
     * order的一对一商品类别
     */
    private ZyGoodDe goodDe;

    /**
     * order的一对一用户
     */
    private ZyUser user;

    //---------------------------------------------------------//
}
